package com.qianyu.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianyu.project.entity.OpenCompany;
import com.qianyu.project.mapper.OpenCompanyMapper;
import com.qianyu.project.service.IOpenCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 发票开票登记表 服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Service
public class OpenCompanyServiceImpl extends ServiceImpl<OpenCompanyMapper, OpenCompany> implements IOpenCompanyService {
    @Autowired
    OpenCompanyMapper im;
    @Override
    public List<OpenCompany> list(OpenCompany i) {
        return im.selectiList(i);
    }

    @Override
    public OpenCompany getById(String id) {
        return im.selectiById(id);
    }

    @Override
    public int add(OpenCompany i) {
        return im.inserti(i);
    }

    @Override
    public int update(OpenCompany i) {
        return im.uppaeti(i);
    }

    @Override
    public int remove(String id) {
        return im.deletei(id);
    }
}
